package com.example.animdemo.rigidanim;

public class RigidJoint {
	public String name;
    public int jointId;
    public int parentId;
    public int frameIndex;

    public float wPosX;
    public float wPosY;
    public float wRot;

    public final RigidJointInfo jointInfo;

    public int objectID;

    public RigidJoint()
    {
        jointId = 0;
        parentId = 0;
        frameIndex = 0;
        wPosX = 0;
        wPosY = 0;
        wRot = 0;
        jointInfo = new RigidJointInfo();
        objectID = -1;
    }

    public final void set(RigidJoint j)
    {
        name = j.name;
        jointId = j.jointId;
        parentId = j.parentId;
        frameIndex = j.frameIndex;
        wPosX = j.wPosX;
        wPosY = j.wPosY;
        jointInfo.set(j.jointInfo);
        objectID = j.objectID;
    }
}

